package com.guldan.auth.provider.manager;

import com.guldan.auth.provider.dto.users.UsersDTO;
import com.guldan.auth.provider.utils.DomainConvertUtils;
import com.guldan.core.manager.BaseManager;
import com.guldan.mapper.db.mapper.UsersMapperExt;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by Silas.
 * Date: 2016/11/12
 * Time: 17:11
 */
@Service
public class UsersManager extends BaseManager {

    @Autowired
    private UsersMapperExt usersMapperExt;

    //获取单个区域信息
    public UsersDTO get(Integer userId) {
        return DomainConvertUtils.convert(usersMapperExt.selectByPrimaryKey(userId));
    }

}
